package com.wss.merchant.controller;


import com.wss.merchant.domain.CommonResult;
import com.wss.merchant.domain.DlNewTypes;
import com.wss.merchant.service.DlNewTypesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 * 商品分类表 前端控制器
 * </p>
 *
 * @author wss
 * @since 2021-03-06
 */
@Controller
@RequestMapping("/types")
public class DlNewTypesController {
    @Autowired
    private DlNewTypesService dlNewTypesService;
    @RequestMapping("/get")
    @ResponseBody
    public CommonResult get(){
        List<DlNewTypes> list = dlNewTypesService.list();
        return new CommonResult(200,"分类列表",list);
    }

}

